package demo;

public class Test {
    public static void main(String[] args) {
        int a1 = 10;
        int a2 = 10;
        int[] array1 = {1,2,3,4,5,6};
        int[] array2 = {1,2,3,4,5,6};
        String s1 = "abc";
        String s2 = new String("abc");
        System.out.println(a1 == a2);
        System.out.println("======================");
        System.out.println(array1 == array2);
        System.out.println(array1.equals(array2));
        System.out.println("======================");
        System.out.println(s1 == s2);
        System.out.println(s1.equals(s2));
    }
}
